package com.usian.controller;

import com.usian.service.UserService;
import com.usian.user.User;
import com.usian.vo.Result;
import com.usian.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/app/users")
public class UserController {
    @Autowired
    private UserService userService;


    @RequestMapping("/findPage")
    public ResultVo findPage(){
        List<User> users = userService.findPage();
        return ResultVo.ok(users);
    }
}
